package com.itheima.mapper;

import com.itheima.domain.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author zy9524
 * @company SocialistSuccessor
 * @date 2019/6/14 19:12
 */
@Repository
public interface UserMapper {

    /**
     * 根据id查找user
     * @param id
     * @return
     */
    @Select("select * from users where id = #{id}")
    User findUserById(@Param("id") Integer id);

}
